package com.hysf.ioc.pro1.config;

import com.hysf.ioc.pro1.pojo.Product;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ComponentScan("com.hysf.ioc.pro1")
@Import(AppConfig2.class)
public class AppConfig {
	@Bean(value = "apple")
	public Product apple() {
		return new Product(1, "apple", 10.0);
	}
}
